package com.skt.domain.DTO;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.PositiveOrZero;

@Data
public class AdminUserDTO {

    private String username;

    private Integer status; // 1=正常, 2=冻结

    private Integer role; // 1=用户, 2=商家, 3=管理员

    @Min(value = 1, message = "页码不能小于1")
    private Integer page = 1;

    @PositiveOrZero(message = "每页数量不能为负")
    private Integer size = 10;
}